package com.itheima.day16.jiexiZhujie;

import java.lang.annotation.Annotation;
import java.lang.reflect.Method;

//解析Demo类中的全部注解
public class AnnotationTest3 {
    public static void main(String[] args) {
        Class c = Demo.class;
        Annotation[] annotations = c.getAnnotations();
        for (Annotation annotation : annotations) {
            System.out.println(annotation);
        }
        Method[] methods = c.getMethods();
        }
    }
